package com.bussiness.impl;

import java.util.List;
import java.util.Map;

import com.bussiness.PoiInterface;
import com.bussiness.domain.Poi;
import com.bussiness.domain.PoiTemplate;
import com.bussiness.domain.PoiTemplate.Type;
import com.dao.PoiDao;
import com.dao.impl.PoiDaoImpl;

public class PoiImpl implements PoiInterface {
	private PoiDao poiDao;

	public PoiImpl() {
		super();
		poiDao = new PoiDaoImpl();
	}

	
	@Override
	public Long createObject(Poi poi) {
		return poiDao.createPoi(poi);
	}

	@Override
	public boolean readObject(Map<String, String> values) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean deleteObject(Map<String, String> values) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean updateObject(Map<String, String> values) {
		// TODO Auto-generated method stub
		return false;
	}


	@Override
	public Long createPoiTemplate(Map<String, Type > values, String name) {
		
		PoiTemplate temp = new PoiTemplate(values, name);
		return poiDao.createPoiTemplate(temp);
	}


	@Override
	public PoiTemplate readPoiTemplate(Long id) {
		return poiDao.readPoiTemplate(id);
	}


	@Override
	public List<PoiTemplate> readAllPoiTemplates() {
		return poiDao.readAllPoiTemplates();
	}

}
